package com.newtouch.bxzs.business.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newtouch.bxzs.business.message.model.bo.ReceiveUserBO;
import com.newtouch.bxzs.common.base.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 接口规范demo的mapper类，必须继承BaseMapper
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020年12月14日</td>
 * <td>Amour</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author Amour
 * @version 1.0.0
 * @since 1.0.0
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户工号查询用户id
     *
     * @param userJobNumberList 用户公号集合
     * @return 用户id集合
     */
    List<String> listUserIdByUserJobNumberList(@Param("userJobNumberList") List<String> userJobNumberList);

    /**
     * 根据用户id查询
     *
     * @param userIds 用户id集合
     * @return List<ReceiveUserBO>
     */
    List<ReceiveUserBO> listByUserIdList(@Param("userIds") List<String> userIds);
}